package com.waitingresult.designpattern.behavioral.template.demo3;

/**
 * @Author: WangShuai
 * @CreateTime: 2023-10-21  12:05
 * @Description:
 * @Version: 1.0
 */
public class RuleInsertTemplate extends AbsInsertTemplate {
    @Override
    Integer type() {
        return 1;
    }

    @Override
    void method1() {
        System.err.println("RuleInsertTemplate.method1: 前置校验处理...");
    }

    @Override
    void method2() {
        System.err.println("RuleInsertTemplate.method1: 数据库与缓存的双写...");
    }
}
